import './assets/main.css'

import { createApp } from 'vue'


import App from './App.vue'
import router from './router'

//引入element-plus
import ElementPlus from 'element-plus'   /* 引入element-plus模块 */
import 'element-plus/dist/index.css'/* 引入element-plus样式 */
import zhCn from 'element-plus/es/locale/lang/zh-cn'/* 引入element-plus的国际化组件 */
import * as ElementPlusIconsVue from '@element-plus/icons-vue'/* 引入element-plus图标组件 */



const app = createApp(App)

app.use(router)   //添加并使用router路由
app.use(ElementPlus,{locale: zhCn})  //添加并使用ElementPlus
for (const [key, component] of Object.entries(ElementPlusIconsVue)) { //添加并注册图标组件到vue中
  app.component(key, component)
}
//挂在到视图中
app.mount('#app')
